package com.fpf.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;

@Component
public class ApiConfig {
    @Value("${api.keys.deepseek}")
    private String deepSeekApiKey;

    public ApiConfig() {
        System.out.println("ApiConfig constructor called");
    }

    @PostConstruct
    public void init() {
        System.out.println("ApiConfig initialized with key: " + deepSeekApiKey);
    }

    public String getDeepSeekApiKey() {
        return deepSeekApiKey;
    }
}